package com.fly.data.jdbc.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.fly.data.jdbc.domain.User;

public interface UserService
{
    void add();
    
    void delete(Long id);
    
    void save(User user);
    
    User findById(Long id);
    
    List<User> queryAll();
    
    Page<User> findAll(Pageable pageable);
    
    List<User> findBy(Pageable pageable);
}
